
<div class="listbox">
    <div class="listbox-table">
        <table cellpadding="2" cellspacing="2" width="100%">
            <%
            for(var i = 0;i < arrArticle.length && i < theCache.settings["articlePerPageList"];i++){
                var tArticle = arrArticle[i];
            %>
            <tr>
                <td class="listbox-entry">
                    <a href="?cat=<%= tArticle.category.id %>">[<%= tArticle.category.name %>]</a>
                    <a href="article.asp?id=<%= tArticle.id %>">
                        <% if(!theUser.checkViewPermission(tArticle)){ %>
                            <%= tArticle.title.replace(/./g, "*") %>
                        <% }else{ %>
                            <%
                                var strTitle = helper.HTMLEncode(tArticle.title);
                                if (arrKeywords.length > 0) {
                                    strTitle = helper.highlight(strTitle, arrKeywords);
                                }
                            %>
                            <%= strTitle %>
                        <% } %>
                    </a>
                    <% if(tArticle.selected){ %>
                        <img src="/public/<%= theCache.settings["imageFolder"] %>/icon_star.gif" alt="<%= __('selected') %>"/>
                    <% } %>
                    <% if(tArticle.locked || tArticle.category.locked){ %>
                        <img src="/public/<%= theCache.settings["imageFolder"] %>/icon_lock.gif" alt="<%= __('locked') %>"/>
                    <% } %>
                </td>
                <td class="listbox-entry" style="word-break: normal;">
                    <% if(theUser.rights["edit"] > 1 ||
                            (theUser.rights["edit"] == 1 && theUser.username == tArticle.author)){ %>
                        <a href="article.asp?act=edit&amp;id=<%= tArticle.id %>" title="<%= lang['edit'] %>"><img
                                    src="/public/<%= theCache.settings["imageFolder"] %>/icon_edit.gif"
                                    alt="<%= lang['edit'] %>"/></a> |
                    <% } %>
                    <% if(theUser.rights["delete"] > 1 ||
                            (theUser.rights["delete"] == 1 && theUser.username == tArticle.author)){ %>
                        <a href="article.asp?act=delete&amp;id=<%= tArticle.id %>" title="<%= lang['delete'] %>"
                           onclick="return confirm('<%= __('confirm_delete_article') %>?')"><img
                                    src="/public/<%= theCache.settings["imageFolder"] %>/icon_del.gif"
                                    alt="<%= lang['delete'] %>"/></a> |
                    <% } %>
                    <a href="user.asp?act=view&amp;id=<%= tArticle.authorID %>"
                       title="<%= __('author') %>"><%= tArticle.author %></a>
                </td>
                <td class="listbox-entry" width="70"><%= helper.getDateTimeString("YY-MM-DD",
                            tArticle.postTime) %></td>
                <td class="listbox-entry" width="100"><a href="article.asp?id=<%= tArticle.id %>#commentbox"
                                                         title="<%= __('comments') %>"><%= tArticle.commentCount %></a>
                    | <%= tArticle.trackbackCount %> | <%= tArticle.viewCount %></td>
            </tr>
            <% } %>
        </table>
    </div>
</div>

